package com.hlz.fastnote

import android.app.Application
import com.umeng.analytics.MobclickAgent
import com.umeng.commonsdk.UMConfigure
import com.umeng.commonsdk.listener.OnGetOaidListener
import org.litepal.LitePal

class App : Application() {

    companion object{
        lateinit var app:App
        val appKey = "618e1e26e014255fcb7740a7"
    }
    override fun onCreate() {
        super.onCreate()
        app = this
        LitePal.initialize(this);


        //设置LOG开关，默认为false
        UMConfigure.setLogEnabled(true);

//        UMConfigure.preInit(this,appKey,"dev")
        UMConfigure.init(this, appKey, "dev", UMConfigure.DEVICE_TYPE_PHONE, null);
        // 选用AUTO页面采集模式
        MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);
    }
}